package com.sanjin.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sanjin.mall.common.utils.PageUtils;
import com.sanjin.mall.product.entity.AttrEntity;
import com.sanjin.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author sanjin
 * @email 1032628545@qq.com
 * @date 2023-05-02 13:30:21
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrVo(AttrVo attr);

    PageUtils getAttrPageByType(Map<String, Object> params, Long catelogId, String attrType);

    void updateByAttrVo(AttrVo attrVo);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

